package yunquan.wang.modules.base.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import yunquan.wang.base.domain.IdEntity;
/**
 * 附件信息
 * @author wangyunquan
 *
 */
@Entity
@Table(name = "base_attachmentInfo")
public class AttachmentInfo extends IdEntity{
/**
	 * 
	 */
	private static final long serialVersionUID = 2287463837521573424L;
@Column(name = "filename",length=20)
private	String fileName;
@Column(name = "create_userid",length=36)
private String createUserId;
@Column(name="createdate")
private  Date createDate;
@Column(name="size",length=7)
private Long size;
@Column(name="filetype",length=5)
private String fileType;
@Column(name="store_type",length=1)
private Integer storeType;
@Column(name="store_url",length=50)
private String stroreURL;//local is path,remote is url
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "messages_id")
private Messages messages;
public String getFileName() {
	return fileName;
}
public void setFileName(String fileName) {
	this.fileName = fileName;
}
public String getCreateUserId() {
	return createUserId;
}
public void setCreateUserId(String createUserId) {
	this.createUserId = createUserId;
}
public Date getCreateDate() {
	return createDate;
}
public void setCreateDate(Date createDate) {
	this.createDate = createDate;
}
public Long getSize() {
	return size;
}
public void setSize(Long size) {
	this.size = size;
}
public String getFileType() {
	return fileType;
}
public void setFileType(String fileType) {
	this.fileType = fileType;
}
public Integer getStoreType() {
	return storeType;
}
public void setStoreType(Integer storeType) {
	this.storeType = storeType;
}
public String getStroreURL() {
	return stroreURL;
}
public void setStroreURL(String stroreURL) {
	this.stroreURL = stroreURL;
}
public Messages getMessages() {
	return messages;
}
public void setMessages(Messages messages) {
	this.messages = messages;
}
 
 

}
